#ifndef __MYSQL_H__
#define __MYSQL_H__
#include <mysql/mysql.h>
#include <stdbool.h>

#define TRANSACTION_START		"BEGIN"
#define TRANSACTION_END			"COMMIT"

#ifdef __cplusplus  
extern "C"  {
#endif 
int cssp_mysql_init(const char *host, const char *user, 
	const char *passwd, const char *db, unsigned int port, char * error);

int cssp_mysql_real_insert(const char * sql, unsigned int len);

int cssp_mysql_insert(const char * sql);

int cssp_mysql_close();

#ifdef __cplusplus  
}  
#endif  

#endif //__MYSQL_H__
